home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / loadavg / RCS / loadavg.man,v < prev    next >
Encoding:
Text File  |  1991-11-01  |  14.8 KB  |  557 lines

  1. head     1.11;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    shirriff:1.11; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.11
  10. date     90.04.09.10.25.56;  author douglis;  state Exp;
  11. branches ;
  12. next     1.10;
  13.  
  14. 1.10
  15. date     90.04.09.10.17.31;  author douglis;  state Exp;
  16. branches ;
  17. next     1.9;
  18.  
  19. 1.9
  20. date     89.08.29.12.52.23;  author douglis;  state Exp;
  21. branches ;
  22. next     1.8;
  23.  
  24. 1.8
  25. date     89.08.29.12.44.34;  author douglis;  state Exp;
  26. branches ;
  27. next     1.7;
  28.  
  29. 1.7
  30. date     89.08.03.15.39.39;  author douglis;  state Exp;
  31. branches ;
  32. next     1.6;
  33.  
  34. 1.6
  35. date     89.05.04.15.51.09;  author douglis;  state Exp;
  36. branches ;
  37. next     1.5;
  38.  
  39. 1.5
  40. date     89.03.17.12.39.18;  author douglis;  state Exp;
  41. branches ;
  42. next     1.4;
  43.  
  44. 1.4
  45. date     88.12.30.09.40.23;  author ouster;  state Exp;
  46. branches ;
  47. next     1.3;
  48.  
  49. 1.3
  50. date     88.12.30.09.38.52;  author ouster;  state Exp;
  51. branches ;
  52. next     1.2;
  53.  
  54. 1.2
  55. date     88.12.21.15.31.16;  author ouster;  state Exp;
  56. branches ;
  57. next     1.1;
  58.  
  59. 1.1
  60. date     88.12.21.15.23.24;  author ouster;  state Exp;
  61. branches ;
  62. next     ;
  63.  
  64.  
  65. desc
  66. @@
  67.  
  68.  
  69. 1.11
  70. log
  71. @fixed up goofs from using obsolete copy of man page.
  72. @
  73. text
  74. @' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.9 89/08/29 12:52:23 douglis Exp Locker: douglis $ SPRITE (Berkeley)
  75. .so \*(]ltmac.sprite
  76. .HS LOADAVG cmds
  77. .BS
  78. .SH NAME
  79. loadavg \- Interface to the migration load average and idle time database
  80. .SH SYNOPSIS
  81. .nf
  82. \fBloadavg\fR \fB\-l \fR
  83. \fBloadavg\fR \fB\-a \fR
  84. \fBloadavg\fR \fB\-Z \fIhost ... \fR
  85. \fBloadavg\fR \fB\-E \fR
  86. \fBuptime\fR
  87. \fBla\fR
  88. \fBevict\fR
  89. .fi
  90. .BE
  91. .SH INTRODUCTION
  92. This command is used to provide user access to the migration load
  93. average and idle 
  94. time database.  It may be used to retrieve information about the local
  95. host or all hosts on the network, invalidate entries in the migration
  96. database,
  97. or evict foreign processes.  The default for \fBloadavg\fR if invoked with
  98. no arguments is to list the load average of the local host.  This is
  99. also true if the program is invoked as \fBla\fR or \fBuptime\fR, which
  100. are synonyms to make \fBloadavg\fR somewhat compatible with UNIX.  If the
  101. program is invoked as \fIevict\fR, the default is to evict foreign
  102. processes. 
  103. .SH "RETRIEVING INFORMATION"
  104. .IP "\fB\-l\fR"
  105. .IP "\fB\-a\fR"
  106. When invoked with the \fB\-l\fR flag, or with no arguments, \fBloadavg\fR
  107. will print a line containing information about the local host.  
  108. The \fB-a\fR flag is used to list information about all hosts.  
  109. Each
  110. line contains the hostname; machine type; machine status; migration
  111. status; 
  112. 1-minute, 5-minute, and 15-minute weighted load averages; and time
  113. since input was last received at the console, for idle hosts.  
  114. Times are given in the
  115. form ``days+hours:minutes''.
  116. For hosts that are running, the machine status is listed as ``up''
  117. followed by the time since they last rebooted.  The migration status
  118. is ``inuse'' for hosts with one or more active local users, ``avail''
  119. for hosts that are available for migration, ``hasmig''for hosts that
  120. are currently running processes that are migrated from other hosts,
  121. and ``refuses'' for hosts that are idle but are refusing migration
  122. (perhaps because they are running an incompatible version of the
  123. kernel, or because they are file servers).  
  124. In addition, for
  125. hosts that are currently available for migration from the host
  126. invoking \fBloadavg\fR, a \fB*\fR is printed next to the hostname.
  127. After the migration status, \fBloadavg\fR lists the weighted load
  128. averages and time since last input.  Note: idle times of less than the
  129. threshold for permitting migration are not listed, and input from
  130. remote logins does not affect host idle time.
  131. Finally, the machine status is ``down'' for hosts that are not currently
  132. running, in which case the host is listed with the time since it was
  133. last running.
  134. .SH "INVALIDATING INFORMATION"
  135. .IP "\fB\-Z \fIhost ...\fR"
  136. To invalidate the entries for one or more hosts in the shared
  137. migration database, invoke \fBloadavg\fR with the \fB\-Z\fR option,
  138. followed by the names of the hosts to invalidate.  This may be used if
  139. a host is removed from the network, for example.  Hosts that are not
  140. invalidated but are down indefinitely will appear in the list of hosts
  141. as being down.
  142. .SH "EVICTION"
  143. .IP "\fB\-E\fR"
  144. Running \fBloadavg\fR with the \fB\-E\fR option causes it to evict foreign processes
  145. as though the machine were no longer idle.  If \fBloadavg\fR is invoked by the
  146. name \fIevict\fR,  eviction is the default operation.
  147. Eviction is performed by invoking an ioctl on the pseudo-device
  148. corresponding to the host-specific \fBmigd\fR daemon.  
  149. .SH "SEE ALSO"
  150. migd, mig, xload, migcmd
  151. .SH KEYWORDS
  152. eviction, foreign, idle time, load average, process migration,
  153. uptime
  154. @
  155.  
  156.  
  157. 1.10
  158. log
  159. @major rework for migd interface, since no longer run as daemon.
  160. @
  161. text
  162. @d1 1
  163. a1 1
  164. ' $Header: /sprite/src/cmds/loadavg/RCS/loadavg.man,v 1.9 89/08/29 12:52:23 douglis Exp Locker: douglis $ SPRITE (Berkeley)
  165. d14 1
  166. a14 1
  167. \fBrup\fR
  168. d19 2
  169. a20 1
  170. This command is used to interface to the migration load average and idle
  171. d25 1
  172. a25 1
  173. no arguments is to list the load average of the local host.   This is
  174. d27 2
  175. a28 3
  176. are synonyms to make \fBloadavg\fR somewhat compatible with UNIX.  
  177. If the
  178. program is invoked as \fBevict\fR, the default is to evict foreign
  179. d45 2
  180. a46 2
  181. is ``active'' for hosts with one or more active local users, ``idle''
  182. for hosts that are available for migration, ``mig''for hosts that
  183. d48 3
  184. a50 1
  185. and ``refuses'' for hosts that are idle but are refusing migration.  
  186. d72 1
  187. a72 2
  188. as though the machine were no longer idle.  (This may become a privileged 
  189. command at some point in the future.)  If \fBloadavg\fR is invoked by the
  190. d74 2
  191. d77 1
  192. a77 1
  193. rup, migd, mig, xload, pmake
  194. d79 1
  195. a79 1
  196. database, eviction, foreign, idle time, load average, process migration,
  197. @
  198.  
  199.  
  200. 1.9
  201. log
  202. @fixed typo
  203. @
  204. text
  205. @d1 1
  206. a1 1
  207. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.8 89/08/29 12:44:34 douglis Exp Locker: douglis $ SPRITE (Berkeley)
  208. d6 1
  209. a6 1
  210. loadavg \- Manage the migration load average and idle time database
  211. a10 1
  212. \fBloadavg\fR \fB\-d \fR[\fB\-v\fR] [\fB\-r\fR]
  213. a11 1
  214.  
  215. d13 2
  216. d19 1
  217. a19 1
  218. This command is used to manage the migration load average and idle
  219. d21 1
  220. a21 3
  221. host or all hosts on the network, retrieve the sprite ID of a host
  222. that is available for process migration, update the migration database
  223. periodically as a daemon, invalidate entries in the migration
  224. d24 6
  225. a29 5
  226. no arguments is to list the load average of the local host, but if the
  227. program is invoked as \fIevict\fR, the default is to evict foreign
  228. processes. When run as a daemon, the load average program will
  229. automatically evict foreign processes when input is detected after a
  230. period of inactivity.
  231. a58 22
  232. .SH "UPDATING INFORMATION (DAEMON MODE)"
  233. .IP "\fB\-d\fR"
  234. At boot time, each host invokes the \fBloadavg\fR program in daemon mode.
  235. The program will detach itself and run in the background.
  236. The program will mark the host as unavailable for migration 
  237. regardless of load and idle time if the \fB\-r\fR flag is specified.
  238. .br
  239. The program runs as long as the host is up, and it periodically
  240. updates both the private and shared migration databases. (Refer to the
  241. mig library for more information about these databases.)  Information
  242. in the private file is updated each time the load is sampled,
  243. currently every five seconds.  The shared database is updated once
  244. each minute or when the migration status of the host changes from
  245. accepting to refusing migrations or vice-versa.   
  246. .br
  247. If a host is idle and input is then
  248. detected, foreign processes are automatically evicted.  If the
  249. \fB\-v\fR flag is specified in daemon mode, then evictions are
  250. verbose, and the processID, userID, and hostID of each foreign process
  251. is printed as the process is evicted.  If not in verbose mode, only a
  252. summary of the number of processes evicted will appear.  In each case,
  253. the information appears in the syslog of the host doing the eviction.
  254. d74 1
  255. a74 6
  256. mig, db, xload, pmake, migcmd, syslog
  257. .SH FILES
  258. .IP /sprite/admin/data/migInfo
  259. The global migration database file.  
  260. .IP /hosts/$HOST/migInfo
  261. The migration database file used by host $HOST.
  262. @
  263.  
  264.  
  265. 1.8
  266. log
  267. @removed -i option (obsolete due to mig command & library), and documented new format.
  268. @
  269. text
  270. @d1 1
  271. a1 1
  272. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.7 89/08/03 15:39:39 douglis Exp Locker: douglis $ SPRITE (Berkeley)
  273. d49 1
  274. a49 1
  275. and ``refuse'' for hosts that are idle but are refusing migration.  
  276. @
  277.  
  278.  
  279. 1.7
  280. log
  281. @added "!" flag
  282. @
  283. text
  284. @d1 1
  285. a1 1
  286. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.6 89/05/04 15:51:09 douglis Exp Locker: douglis $ SPRITE (Berkeley)
  287. a10 1
  288. \fBloadavg\fR \fB\-i \fR[\fB\-v\fR] \fR
  289. d33 1
  290. d35 5
  291. a39 4
  292. will print a line containing information about the local host.  The
  293. line contains the hostname; machine type; migration status; time since
  294. the host was last  
  295. rebooted;
  296. d41 1
  297. a41 8
  298. since input was last received at the console.  The migration status is
  299. blank for hosts that are not accepting migration, \fB*\fR for hosts that are 
  300. available for migration, \fB+\fR for hosts accepting migration from
  301. the current host
  302. but which are temporarily in use
  303. by migrated processes, \fB\-\fB for hosts with migrated processes
  304. on them but to which this host cannot migrate, and \fB!\fR for hosts
  305. accepting migration but to which this host cannot migrate.
  306. d43 17
  307. a59 20
  308. form ``days+hours:minutes:seconds''.
  309. Note: input from remote
  310. logins is not recorded.  
  311. .IP "\fB\-a\fR"
  312. Use this flag to list information about all hosts.  Hosts that are up
  313. will be shown with information like that described above for the local
  314. host.  Hosts that are down will be shown as ``down'', along with the
  315. time since they were last up.
  316. .IP "\fB\-i\fR"
  317. This flag indicates that the \fBloadavg\fR program should output the Sprite
  318. ID of a host that is available for process migration.  To be available
  319. for migration, the host must be the same architecture as the local
  320. host, have a low load average, have no recent keyboard input, and be
  321. willing to accept processes for migration.
  322. If the \fB\-v\fR flag is specified along with \fB\-i\fR, the program
  323. will print ``No idle node found'' if no host is available.  Otherwise,
  324. if no host is available, nothing will be printed.
  325. .br
  326. Typically, programs such as \fIpmake\fP access the migration database 
  327. directly to select idle machines.  
  328. @
  329.  
  330.  
  331. 1.6
  332. log
  333. @caught up to recent changes, such as inverting meaning of "-F" flag,
  334. and adding "-v" verbose flag.
  335. @
  336. text
  337. @d1 1
  338. a1 1
  339. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.5 89/03/17 12:39:18 douglis Exp Locker: douglis $ SPRITE (Berkeley)
  340. d45 3
  341. a47 2
  342. by migrated processes, and \fB\-\fB for hosts with migrated processes
  343. on them but to which this host cannot migrate.
  344. @
  345.  
  346.  
  347. 1.5
  348. log
  349. @added info about -v mode for daemon.
  350. @
  351. text
  352. @d1 1
  353. a1 1
  354. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.4 88/12/30 09:40:23 ouster Exp Locker: douglis $ SPRITE (Berkeley)
  355. d12 1
  356. a12 1
  357. \fBloadavg\fR \fB\-d \fR[\fB\-F\fR] [\fB\-v\fR] [\fB\-r\fR]
  358. d36 2
  359. a37 1
  360. line contains the hostname; migration status; time since the host was last 
  361. d41 6
  362. a46 3
  363. blank for hosts that are not accepting migration, * for hosts that are 
  364. available for migration, and + for hosts that are currently in use
  365. by migrated processes.
  366. d71 2
  367. a72 4
  368. The program will detach itself and run in the background if the
  369. \fB\-F\fR flag is 
  370. specified in addition to \fB\-d\fR; otherwise, it will remain with
  371. its parent.  The program will mark the host as unavailable for migration 
  372. @
  373.  
  374.  
  375. 1.4
  376. log
  377. @More format upgrades.
  378. @
  379. text
  380. @d1 1
  381. a1 1
  382. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.3 88/12/30 09:38:52 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  383. d12 1
  384. a12 1
  385. \fBloadavg\fR \fB\-d \fR[\fB\-F\fR] [-r\fR]
  386. d79 9
  387. a87 2
  388. accepting to refusing migrations or vice-versa.   If input is
  389. detected, foreign processes are automatically evicted.
  390. d103 1
  391. a103 1
  392. mig, db, xload, pmake, migcmd
  393. d106 1
  394. a106 1
  395. The global migration database file.
  396. @
  397.  
  398.  
  399. 1.3
  400. log
  401. @More format upgrades.
  402. @
  403. text
  404. @d1 1
  405. a1 1
  406. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.2 88/12/21 15:31:16 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  407. d34 1
  408. a34 1
  409. When invoked with the "\fB\-l\fR" flag, or with no arguments, \fBloadavg\fR
  410. d40 2
  411. a41 2
  412. blank for hosts that are not accepting migration, "*" for hosts that are 
  413. available for migration, and "+" for hosts that are currently in use
  414. d58 1
  415. a58 1
  416. If the "\fB\-v\fR" flag is specified along with "\fB\-i\fR", the program
  417. d68 2
  418. a69 2
  419. "\fB\-F\fR" flag is 
  420. specified in addition to "\fB\-d\fR"; otherwise, it will remain with
  421. d71 1
  422. a71 1
  423. regardless of load and idle time if the "\fB\-r\fR" flag is specified.
  424. d84 1
  425. a84 1
  426. migration database, invoke \fBloadavg\fR with the "\fB\-Z\fR" option,
  427. d91 1
  428. a91 1
  429. Running \fBloadavg\fR with the "\fB\-E\fR" option causes it to evict foreign processes
  430. @
  431.  
  432.  
  433. 1.2
  434. log
  435. @*** empty log message ***
  436. @
  437. text
  438. @d1 1
  439. a1 1
  440. ' $Header: /a/newcmds/loadavg/RCS/loadavg.man,v 1.1 88/12/21 15:23:24 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  441. d9 5
  442. a13 5
  443. \fBloadavg\fR \fB -l \fR
  444. \fBloadavg\fR \fB -a \fR
  445. \fBloadavg\fR \fB -i \fR[\fB-v] \fR
  446. \fBloadavg\fR \fB -d \fR[\fB-F\fR] [-r\fR]
  447. \fBloadavg\fR \fB -Z \fIhost ... \fR
  448. d15 1
  449. a15 1
  450. \fBloadavg\fR \fI -E \fR
  451. d26 1
  452. a26 1
  453. or evict foreign processes.  The default for loadavg if invoked with
  454. d33 2
  455. a34 2
  456. .IP "\fB-l\fR"
  457. When invoked with the "\fB-l\fR" flag, or with no arguments, loadavg
  458. d47 1
  459. a47 1
  460. .IP "\fB-a\fR"
  461. d52 2
  462. a53 2
  463. .IP "\fB-i\fR"
  464. This flag indicates that the loadavg program should output the Sprite
  465. d58 1
  466. a58 1
  467. If the "\fB-v\fR" flag is specified along with "\fB-i\fR", the program
  468. d65 2
  469. a66 2
  470. .IP "\fB-d\fR"
  471. At boot time, each host invokes the loadavg program in daemon mode.
  472. d68 2
  473. a69 2
  474. "\fB-F\fR" flag is 
  475. specified in addition to "\fB-d\fR"; otherwise, it will remain with
  476. d71 1
  477. a71 1
  478. regardless of load and idle time if the "\fB-r\fR" flag is specified.
  479. d82 1
  480. a82 1
  481. .IP "\fB-Z \fIhost ...\fR"
  482. d84 1
  483. a84 1
  484. migration database, invoke loadavg with the "\fB-Z\fR" option,
  485. d90 2
  486. a91 2
  487. .IP "\fB-E\fR"
  488. Running loadavg with the "\fB-E\fR" option causes it to evict foreign processes
  489. d93 1
  490. a93 1
  491. command at some point in the future.)  If loadavg is invoked by the
  492. @
  493.  
  494.  
  495. 1.1
  496. log
  497. @Initial revision
  498. @
  499. text
  500. @d1 3
  501. a3 2
  502. ' $Header: /sprite/doc/ref/cmds/RCS/loadavg,v 1.2 88/11/16 10:28:41 douglis Exp $ SPRITE (Berkeley)
  503. .TH loadavg prog
  504. d5 1
  505. a5 1
  506. .NA
  507. d7 7
  508. a13 6
  509. .SY
  510. \fBloadavg\fR \fI -l \fR
  511. \fBloadavg\fR \fI -a \fR
  512. \fBloadavg\fR \fI -i [-v] \fR
  513. \fBloadavg\fR \fI -d [-F] [-r] \fR
  514. \fBloadavg\fR \fI -Z host ... \fR
  515. d17 1
  516. d33 2
  517. a34 2
  518. .IP "-l"
  519. When invoked with the \fB"-l"\fP flag, or with no arguments, loadavg
  520. d47 1
  521. a47 1
  522. .IP "-a"
  523. d52 1
  524. a52 1
  525. .IP "-i"
  526. d58 1
  527. a58 1
  528. If the \fB"-v"\fP flag is specified along with \fB"-i"\fP, the program
  529. d65 1
  530. a65 1
  531. .IP "-d"
  532. d68 2
  533. a69 2
  534. \fB"-F"\fP flag is 
  535. specified in addition to \fB"-d"\fP; otherwise, it will remain with
  536. d71 1
  537. a71 1
  538. regardless of load and idle time if the \fB"-r"\fP flag is specified.
  539. d82 1
  540. a82 1
  541. .IP "-Z host ..."
  542. d84 1
  543. a84 1
  544. migration database, invoke loadavg with the \fB"-Z"\fP option,
  545. d90 2
  546. a91 2
  547. .IP "-E"
  548. Running loadavg with the \fB"-E"\fP option causes it to evict foreign processes
  549. d96 1
  550. a96 1
  551. Mig, Db, xload, pmake, migcmd
  552. d103 2
  553. a104 2
  554. process migration, load average, uptime, idle time, database,
  555. eviction, foreign
  556. @
  557.